package org.scohen.juploadr.uploadapi.abilities;

import java.util.LinkedList;
import java.util.List;

import org.scohen.juploadr.app.PhotoSet;
import org.scohen.juploadr.uploadapi.ImageUploadApi;

public class OrganizeAbilityNotification implements AbilityNotification {
    private List<PhotoSet> photoSets;
    private boolean replaceOldSets = false;

    public OrganizeAbilityNotification(List<PhotoSet> photoSets, boolean shouldReplace) {
        this.photoSets = photoSets;
        replaceOldSets = shouldReplace;
    }

    public OrganizeAbilityNotification(PhotoSet set) {
        this.photoSets = new LinkedList<PhotoSet>();
        photoSets.add(set);
    }

    public PhotoAbilities getAbility() {

        return ImageUploadApi.getInstance().getAbilities().getPhotoAbilities();
    }

    public List<? extends PhotoSet> getPhotoSets() {
        return photoSets;
    }

    public boolean shouldReplaceOldSets() {
        return replaceOldSets;
    }
}
